package arrayList;

import java.io.FilterOutputStream;

public class Test {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(10);
        myArrayList.add(11);
        myArrayList.add(12);
        myArrayList.add(13);
        myArrayList.display();
        System.out.println();
        myArrayList.add(2,10);
        System.out.println(myArrayList.size());
        myArrayList.display();
        System.out.println();
        System.out.println(myArrayList.contains(12));
        System.out.println(myArrayList.indexOf(12));
        System.out.println("----------------");
        myArrayList.remove(10);
        myArrayList.remove(10);
        myArrayList.display();
    }
}
